package com.dfwl.packageio;

import android.app.Application;

import com.dfwl.packageio.core.db.DbRepository;

/**
 * @auth &{zhujiule}
 * @date 2018/8/13
 * @copyright 杭州物恋网科技有限公司
 **/
public class App extends Application {

   private static App mContext;
   DbRepository dbManager;

   public DbRepository getDbManager() {
      return dbManager;
   }

   public void setDbManager(DbRepository dbManager) {
      this.dbManager = dbManager;
   }

   public static App getInstance(){
      return mContext;
   }
   @Override
   public void onCreate() {
      super.onCreate();
      mContext = this;
      setDbManager(new DbRepository(this));

   }
}
